//<<<+++OPENSOURCE
//<<<+++OPENSOURCE_LICENSE
/**
 * @addtogroup FXGE
 * @{
 */

/**
 * @file
 * @brief Platform dependant support for Apple.
 */
//<<<+++OPENSOURCE_MUST_BEGIN
#ifndef _FX_GE_APPLE_H_		
#define _FX_GE_APPLE_H_

#if _FXM_PLATFORM_  == _FXM_PLATFORM_APPLE_
//<<<+++OPENSOURCE_MUST_END

class CFX_QuartzDevice : public CFX_RenderDevice
{
public:
	CFX_QuartzDevice();
    ~CFX_QuartzDevice();
    
    FX_BOOL Attach(CGContextRef context, FX_INT32 nDeviceClass = FXDC_DISPLAY);
    FX_BOOL Attach(CFX_DIBitmap* pBitmap);
    FX_BOOL Create(FX_INT32 width, FX_INT32 height, FXDIB_Format format);
    
    //<<<+++OPENSOURCE_BEGIN LIC==FOXIT
    virtual void    ClearDevice();
    //<<<+++OPENSOURCE_END
	
	CGContextRef GetContext();
	
protected:
	CGContextRef m_pContext;
    FX_BOOL m_bOwnedBitmap;
};

//<<<+++OPENSOURCE_MUST_BEGIN
#endif 

#endif // _FX_GE_APPLE_H_
//<<<+++OPENSOURCE_MUST_END



